.commodity-container {
  background-color: #f5f5f5;
  padding-bottom: 120rpx;
  padding-bottom: calc(120rpx +  constant(safe-area-inset-bottom));
  padding-bottom: calc(120rpx +  env(safe-area-inset-bottom));
  position: relative;
  .share-btn-icon{
    position: fixed;
    right: 20rpx;
    top: 10rpx;
    z-index: 99;
    // #ifdef MP-WEIXIN
    top: 320rpx;
    // #endif
  }
  &.bonus-gift {
    padding-bottom: 192rpx;
    padding-bottom: calc(192rpx +  constant(safe-area-inset-bottom));
    padding-bottom: calc(192rpx +  env(safe-area-inset-bottom));
  }
  .commodity-header{
    @include flex;
    @include a-center;
    height: 88rpx;
    margin-left: 25rpx;
    .header-control{
      width: 140rpx;
      background-color: #fff;
      height: 56rpx;
      border-radius: 28rpx;
      border: 2rpx solid $color-border;
      @include flex;
      @include a-center;
      .control-box {
        position: relative;
        @include flex;
        @include a-center;
        justify-content: center;
        width: 70rpx;
        height: 44rpx;
        &:nth-child(1) {
          border-right: 2rpx solid $color-border;
        }
      }
      .left-control{
        .nav-icon{
          width: 40rpx;
          height: 40rpx;
        }
      }

    }
    .nav-icon{
      width: 20rpx;
      height: 40rpx;
    }
    .right-part{
      background: url('~@/static/images/commodity/bg_menu_box.png') no-repeat;
      background-size: 100% 100%;
      position: absolute;
      right: -20rpx;
      width: 170rpx;
      box-sizing: border-box;
      padding: 20rpx;
      top: 100%;
      padding-top: 30rpx;
      @include flex(column);
      @include a-center;
      .menu-item{
        @include flex();
        @include a-center;
        width: 120rpx;
        height: 70rpx;
        margin: 0 10rpx;
        border-bottom: 1rpx solid $color-border;
        &:nth-last-child(1) {
          border-bottom: none;
        }
      }
      .nav-icon{
        margin-right: 10rpx;
        width: 30rpx;
        height: 30rpx;
      }
      .nav-text{
        font-size: 24rpx;
      }
      .cartIconBox{
        position: relative;
        .cartNums{
          position: absolute;
          top: 0;
          left: 10rpx;
          z-index: 2;
          line-height: 20px;
          font-size: 12px;
          color: white;
          width: 40rpx;
          height: 40rpx;
          transform: scale(0.6);
          border-radius: 8px;
          text-align: center;
          background-color: $color-price;
        }
      }
    }
    .title-part{
      @include sub-item;

      .nav-title{
        font-size: 15px;
        text-align: center;
        padding-right: 110rpx;
      }
    }
  }
  .icon-share{
    position: fixed;
    right: 15px;
    top: 45%;
    margin-top: -17px;
    z-index: 5;
    .share-user{
      width: 50vw;
      overflow: hidden;
      height: 14vw;
      transition: 400ms;
      position: relative;
      font-size: 13px;
      display: flex;
      align-items: center;
      color: white;
      text-align: right;
      background-color: rgba(0,0,0,0.6);
      border-radius: 7vw;
      .left-user{
        width: 45vw;
        // margin:0 2vw;
        margin-right: 15vw;
        .name{
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          max-width: 36vw;
          margin-left: 12vw;
          text-align: right;
        }
        .mood{
          white-space: nowrap;
          // transform: scale(0.8);
          margin-right: -2vw;
        }
      }
      .right-user{
        position: absolute;
        right: 0;
        top: 2vw;
        image{
          box-sizing: border-box;
          width: 10vw;
          height: 10vw;
          border-radius: 50%;
          margin: 0 2vw;
          border: 1px solid white;
        }
      }
    }
  }
  .navRight {
    display: flex;
    height: 44px;
    align-items: center;
    image {
      width: 35px;
      height: 35px;
      margin: 3px;
    }
  }
  .cartIconBox{
    position: relative;
    .span{
      position: absolute;
      top: 0;
      right: 0;
      line-height: 20px;
      font-size: 12px;
      color: white;
      width: 20px;
      height: 20px;
      transform: scale(0.6);
      border-radius: 8px;
      text-align: center;
      background-color: $color-price;
    }
  }
  .swiper-components {
    overflow: hidden;
    .commodity-swiper{
      width: 100%;
      height: 750rpx;
    }
    .swiper-item-box{
      display: flex;
      align-items: center;
    }
  }
  .goods-found {
    background-color: #fff;
    margin: 0px 0px 10px 0px;
    // box-shadow:0px 5px 5px 0px rgba(153,174,223,0.1);
    box-sizing: border-box;
    padding: 0 10px;
    .sLine {
      @include s-line();
      height: 50px;
      border-bottom: 1px solid #eaeaea;
      color: #000;
      .lCont{
        color: #999;
        font-size: 13px;
      }
      image{
        width: 8px;
      }
      .rCont{
        font-size: 12px;
        flex: 1;
        position: relative;
        margin-left: 12px;
        .right_arror{
          position: absolute;
          right: 0;
          width: 12rpx;
          height: 24rpx;
          top: 6rpx;
          margin-right: 10rpx;
        }
        &.coupon_box{

          .coupon_item{
            display: block;
            background-image: url('~@/static/images/commodity/coupon_border.png');
            background-size: 100% 100%;
            // color: $color-theme;
            color: #FF3E70;
            margin-right: 5px;
            padding: 3px 6px;
            font-size: 10px;
          }
        }

        .serviceItem{
          display: flex;
          align-items: center;
          .span{
            padding: 0 10rpx;
          }
          image{
            width: 12px;
            height: 12px;
          }
        }
      }
      .starLength{
        image{
          width: 14px;
          height: 14px;
          margin-right: 10px;
        }
      }
    }
    .sLine:nth-last-child(1) { border-bottom: 1px solid rgba(0, 0, 0, 0);}
  }
  .packageIntroIte{
    border-bottom: 1px solid #efefef;
    &:nth-last-child(1) {
      border: none;
    }
    padding: 20rpx 0 20rpx 0rpx;
    &.check-padding{
      padding-left: 60rpx;
    }
    position: relative;
    .product-check{
      width: 20px;
      height: 20px;
      position: absolute;
      left: 0px;
      top: 40px;
      .checked-circle{
        display: block;
        width: 20px;
        height: 20px;
        background: url('~@/static/images/icon/icon_marquee.png') no-repeat;
        background-size: 100% 100%;
      }
      .checked{
        background: url('~@/static/images/icon/icon_radio_active.png') no-repeat;
        background-size: 100% 100%;
      }
      .unable{
        background: url('~@/static/images/icon/icon_marquee_unable.png') no-repeat;
        background-size: 100% 100%;
      }
    }
  }
  .addPurchaseBox{
    padding: 10rpx 0;
    background:#fff;
    margin-top: 16rpx;
    .form-title{
      padding-top: 32rpx;
      color: #000;
      font-size: 32rpx;
      font-weight:bold;
      .title-tip{
        font-size: 28rpx;
        color: #999;
      }
    }
    .form-content{
      .gifts-item{
        .goods-item {
          @include flex;
          align-items: center;
          color: #000;
          &:first-child {
            padding-top: 32rpx;
          }
          .icon_gou{
            width: 32rpx;
            height: 32rpx;
            margin-right: 24rpx;
          }
          .img-con{
            position: relative;
            width: 160rpx;
            height: 160rpx;
            margin-right: 24rpx;
            .drop-img{
              top: 0;
              bottom: 0;
              left: 0;
              right: 0;
              width: 60%;
              height: 60%;
              margin: auto;
              position: absolute;
              z-index: 2;
            }
          }
          .goods-content {
            .money-item {
              @include flex;
              @include j-between;
              font-size: 24rpx;
              margin-top: 12rpx;
              align-items: flex-end;
              .big-money {
                font-size: 32rpx;
              }
              .medium-text {
                font-size: 28rpx;
              }
              .text-flex{
                @include flex;
                @include a-center;
                .drop-text{
                  font-size: 24rpx;
                  width: 94rpx;
                  height: 38rpx;
                  line-height: 38rpx;
                  text-align: center;
                  background-color: #ccc;
                  color: white;
                  border-radius: 10rpx;
                  margin-left: -8rpx;
                  transform: scale(0.8)
                }
              }
            }
            .goods-sku{
              @include flex;
              @include a-center;
              font-size: 22rpx;
              color: #999;
              line-height: 22rpx;
              .right-icon{
                width: 18rpx;
                height: 24rpx;
                margin-left: 20rpx;
              }
            }
            .title {
              @include text-ellipsis-line;
              letter-spacing: 1.4rpx;
              height: 76rpx;
              font-size: 26rpx;
              line-height: 37rpx;
              width: 448rpx;
            }
            .gray-text{
              color: #ccc;
            }
          }
        }
        .gift-tips {
          margin-top: 16rpx;
          line-height: 40rpx;
          background:rgba(255,249,237,1);
          color: #FF6010;
          padding: 16rpx 32rpx;
          .title {
            width: 100%;
            margin: 0 auto;
            .disib {
              display: inline-block;
            }
            &:nth-child(2) {
              display: initial;
            }
          }
        }
        .gray-area{
          background: #F5F5F5;
          color: #ccc;
        }
      }
    }
  }
  .singleGoodsShopCartMask {
    .cartMain {
      vertical-align: middle;
      .goodsImg {
        vertical-align: middle;
        display: inline-block;
        margin: -60rpx 30rpx 30rpx 0px;
        image {width: 90px; height: 180rpx; border-radius: 5px; border: 1px solid #eaeaea;}
      }
      .priceBox {
        display: inline-block;
        margin-top: -10px;
        max-width: 400rpx;
        .price {
          .span {
            display: inline-block;
            .b{
              display: inline-block;
              font-size: $font-size-medium;
            }
            color: $color-price;
            font-size: $font-size-large;
          }
        }
        .skuDec {color: $color-tips; font-size: 12px;}
      }
    }
    .cartCount {
      display: flex;
      margin-top: 10px;
      justify-content: space-between;
      padding-right:20rpx;
      .title {
        color: $color-title;
        .small {
          margin-left: 5px;
          color: #FF7F00;
        }
        .min-gray {
           margin-left: 5px;
          color: #999;
          font-size: 24rpx;
        }
      }
    }
    .maskBottomBtn {
      margin-top: 80rpx;
      background-color: #000;
      border-radius: 0;
      &.gray {
        background-color: #ccc;
      }
    }
  }
  .maskBox {
    .partnerRuleMask{
      max-height: 500px;
      overflow-y: auto;
      .title{
        margin-bottom: 20px;
        font-size: 17px;
        color: #000;
      }
    }
    .activityMask{
      min-height: 200px;
      .title{
        font-size: 18px;
        font-weight: bold;
      }
      .activityContainer{
        .p{
          margin: 10px 0;
          border-bottom: 1px solid #efefef;
          padding: 5px 0;
          color: $color-title;
          font-size: $font-size-medium-x;
          .span{
            color: white;
            padding: 3px 5px;
            margin-right: 10px;
            background-color: $color-theme;
          }
        }
        .span{
          font-size: $font-size-small;
          color: $color-tags;
        }
      }
    }
    .shareDialogMask{
      height: 100%;
      padding: 0;
      background-color: rgba(0, 0, 0, 0);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .post-share-box{
        flex: 1;
        display: flex;
        background-color: rgba(0, 0, 0, 0);
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }
      .shareDialogCont{
        width: 100%;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        background-color: #fff;
        .title{
          text-align: center;
          font-size: 16px;
          margin-top: 10px;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .price{
            color: #FF3939;
          }
        .maskBottomBtn{
            width: auto;
            margin: 0;
            border-radius: 0;
            background-color: $color-background;
            color: #000;
          }
      }
      .shareDialogBox{
        padding: 10px 0 20px 0;

        display: flex;
        justify-content: space-between;
        align-items: center;
        .shareDialogItem{
          flex: 1;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-direction: column;
          .icon-item{
            image{
              width: 40px;
              height: 40px;
            }
            margin-bottom: 16px;
          }
          .text{
            font-size: 12px;
          }

        }
      }
    }
  }
  .goods-found-pack{
    overflow: hidden;
    .packLimit{
      color: #000;
      margin-top: 10px;
      display: block;
      font-weight: bold;
      font-size: 14px;
    }
  }
  .goods-intro {
    .commodity-intro-image{
      width: 100%;
      padding: 0;
      margin: 0;
      text-indent:0;
      display: block;
      line-height: 0;
    }
  }
}
.head_title {
  width: 50%;
  line-height: 44px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  font-size: 16px;
  color: #000;
  .title_active {
    color: #000;
    border-bottom: 2px solid #000;
  }
}
.share-back {
  width: 60rpx;
  height: 60rpx;
  margin-left: 10rpx;
  .home-nav-icon {
    width:60rpx;
    height: 60rpx;
  }
}
.share-container {
  // width: 450rpx;
  height: 80rpx;
  position: fixed;
  top: 45%;
  right: 30rpx;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50rpx;
  padding: 10rpx;
  .share-left {
    float: right;
    width: 370rpx;
    transition: width 0.3s;
    overflow: hidden;
  }
  &.hide {
    .share-left {
      width: 0;
    }
  }
  .share-username, .share-tip {
    font-size: 24rpx;
    color: #fff;
    text-align: right;
    line-height: 40rpx;
    width: 340rpx;
  }
  .share-username {
    @include text-ellipsis;
    font-size: 28rpx;
  }
  .share-right {
    float: right;
    width: 80rpx;
    height: 80rpx;
    border-radius: 50%;
    image {
      width: 80rpx;
      height: 80rpx;
      border-radius: 50%;
      overflow: hidden;
      display: block;
    }
  }
}